<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../print.css" type="text/css" media="print">
<meta content="VertexMath,sandy.math.VertexMath,addVertex,clone,cross,dot,getInstance,linearGradientMatrix,negate,sub" name="keywords">
<title>sandy.math.VertexMath</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'VertexMath - Sandy 3.1.2 API Documentation';
				var baseRef = '../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Sandy 3D Engine, 3.1.2</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../all-classes.html')" href="../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../all-classes.html')" href="../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../index-list.html')" href="../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../index.html?sandy/math/VertexMath.html&amp;sandy/math/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;VertexMath</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class VertexMath"); titleBar_setSubNav(false,false,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">sandy.math</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class VertexMath</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">VertexMath <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../images/inherit-arrow.gif"> <a href="Point3DMath.html">Point3DMath</a></td>
</tr>
</table>
<p></p>
  Math functions for vertex manipulation.
   
  <p></p>
<br>
<hr>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<div class="showHideLinks">
<div class="hideInheritedMethod" id="hideInheritedMethod">
<a onclick="javascript:setInheritedVisible(false,'Method');" href="#methodSummary" class="showHideLink"><img src="../../images/expanded.gif" class="showHideLinkImage"> Hide Inherited Public Methods</a>
</div>
<div class="showInheritedMethod" id="showInheritedMethod">
<a onclick="javascript:setInheritedVisible(true,'Method');" href="#methodSummary" class="showHideLink"><img src="../../images/collapsed.gif" class="showHideLinkImage"> Show Inherited Public Methods</a>
</div>
</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#VertexMath()">VertexMath</a>()</div>
<div class="summaryTableDescription">
   Creates a VertexMath object.</div>
</td><td class="summaryTableOwnerCol">VertexMath</td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="Point3DMath.html#addPoint3D()">addPoint3D</a>(p_oV:<a href="../core/data/Point3D.html">Point3D</a>, p_oW:<a href="../core/data/Point3D.html">Point3D</a>):<a href="../core/data/Point3D.html">Point3D</a>
</div>
<div class="summaryTableDescription">[static]
   Adds two 3D Point3Ds.</div>
</td><td class="summaryTableOwnerCol"><a href="Point3DMath.html">Point3DMath</a></td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#addVertex()">addVertex</a>(p_oV:<a href="../core/data/Vertex.html">Vertex</a>, p_oW:<a href="../core/data/Vertex.html">Vertex</a>):<a href="../core/data/Vertex.html">Vertex</a>
</div>
<div class="summaryTableDescription">[static]
   Adds the two vertices.</div>
</td><td class="summaryTableOwnerCol">VertexMath</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#clone()">clone</a>(p_oV:<a href="../core/data/Vertex.html">Vertex</a>):<a href="../core/data/Vertex.html">Vertex</a>
</div>
<div class="summaryTableDescription">[static]
   Clones a vertex.</div>
</td><td class="summaryTableOwnerCol">VertexMath</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#cross()">cross</a>(p_oW:<a href="../core/data/Vertex.html">Vertex</a>, p_oV:<a href="../core/data/Vertex.html">Vertex</a>):<a href="../core/data/Vertex.html">Vertex</a>
</div>
<div class="summaryTableDescription">[static]
   Computes the cross product the two vertices.</div>
</td><td class="summaryTableOwnerCol">VertexMath</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#dot()">dot</a>(p_oV:<a href="../core/data/Vertex.html">Vertex</a>, p_oW:<a href="../core/data/Vertex.html">Vertex</a>):Number</div>
<div class="summaryTableDescription">[static]
   Computes the dot product of the two vertices.</div>
</td><td class="summaryTableOwnerCol">VertexMath</td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="Point3DMath.html#getAngle()">getAngle</a>(p_oV:<a href="../core/data/Point3D.html">Point3D</a>, p_oW:<a href="../core/data/Point3D.html">Point3D</a>):Number</div>
<div class="summaryTableDescription">[static]
   Calculates the angle between two 3D Point3Ds.</div>
</td><td class="summaryTableOwnerCol"><a href="Point3DMath.html">Point3DMath</a></td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getInstance()">getInstance</a>():<a href="../math/VertexMath.html">VertexMath</a>
</div>
<div class="summaryTableDescription">[static]
   Returns an instance of this class.</div>
</td><td class="summaryTableOwnerCol">VertexMath</td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="Point3DMath.html#getNorm()">getNorm</a>(p_oV:<a href="../core/data/Point3D.html">Point3D</a>):Number</div>
<div class="summaryTableDescription">[static]
   Computes the norm of a 3D Point3D.</div>
</td><td class="summaryTableOwnerCol"><a href="Point3DMath.html">Point3DMath</a></td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#linearGradientMatrix()">linearGradientMatrix</a>(p_oV0:<a href="../core/data/Vertex.html">Vertex</a>, p_oV1:<a href="../core/data/Vertex.html">Vertex</a>, p_oV2:<a href="../core/data/Vertex.html">Vertex</a>, p_nR0:Number, p_nR1:Number, p_nR2:Number, p_oMatrix:Matrix = null):Matrix</div>
<div class="summaryTableDescription">[static]
   Calculates linear gradient matrix from three vertices and ratios.</div>
</td><td class="summaryTableOwnerCol">VertexMath</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#negate()">negate</a>(p_oV:<a href="../core/data/Vertex.html">Vertex</a>):<a href="../core/data/Vertex.html">Vertex</a>
</div>
<div class="summaryTableDescription">[static]
   Computes the opposite of a vertex.</div>
</td><td class="summaryTableOwnerCol">VertexMath</td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="Point3DMath.html#normalize()">normalize</a>(p_oV:<a href="../core/data/Point3D.html">Point3D</a>):Boolean</div>
<div class="summaryTableDescription">[static]
   Normalizes a 3d Point3D.</div>
</td><td class="summaryTableOwnerCol"><a href="Point3DMath.html">Point3DMath</a></td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="Point3DMath.html#pow()">pow</a>(p_oV:<a href="../core/data/Point3D.html">Point3D</a>, p_nExp:Number):<a href="../core/data/Point3D.html">Point3D</a>
</div>
<div class="summaryTableDescription">[static]
   Computes the power of a 3D Point3D.</div>
</td><td class="summaryTableOwnerCol"><a href="Point3DMath.html">Point3DMath</a></td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="Point3DMath.html#scale()">scale</a>(p_oV:<a href="../core/data/Point3D.html">Point3D</a>, n:Number):<a href="../core/data/Point3D.html">Point3D</a>
</div>
<div class="summaryTableDescription">[static]
   Multiplies a 3D Point3D by specified scalar.</div>
</td><td class="summaryTableOwnerCol"><a href="Point3DMath.html">Point3DMath</a></td>
</tr>
<tr class="hideInheritedMethod">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="Point3DMath.html#sphrand()">sphrand</a>(inner:Number, outer:Number):<a href="../core/data/Point3D.html">Point3D</a>
</div>
<div class="summaryTableDescription">[static]
   Returns a random Point3D contained betweeen the first and second values.</div>
</td><td class="summaryTableOwnerCol"><a href="Point3DMath.html">Point3DMath</a></td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#sub()">sub</a>(p_oV:<a href="../core/data/Vertex.html">Vertex</a>, p_oW:<a href="../core/data/Vertex.html">Vertex</a>):<a href="../core/data/Vertex.html">Vertex</a>
</div>
<div class="summaryTableDescription">[static]
   Substracts one vertices from another.</div>
</td><td class="summaryTableOwnerCol">VertexMath</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="VertexMath()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">VertexMath</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function VertexMath()</code><p>
   Creates a VertexMath object.
   
   </p><p>This is a singleton constructor, and should not be called directly.<br />
   If called from outside the ColorMath class, it throws a SingletonError.</p>
   <p>[<strong>ToDo</strong>: Why instantiate this at all? - all methods are class methods! ]</p>
   </div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="addVertex()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">addVertex</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public static function addVertex(p_oV:<a href="../core/data/Vertex.html">Vertex</a>, p_oW:<a href="../core/data/Vertex.html">Vertex</a>):<a href="../core/data/Vertex.html">Vertex</a></code><p>
   Adds the two vertices.
      </p><p>[<strong>ToDo</strong>: Check here! We should add all the properties of the vertices! ]</p>
      <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">p_oV</span>:<a href="../core/data/Vertex.html">Vertex</a></code> &mdash; The first vertex.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">p_oW</span>:<a href="../core/data/Vertex.html">Vertex</a></code> &mdash; The second vertex.
      </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../core/data/Vertex.html">Vertex</a></code> &mdash; 
                        The resulting vertex.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="clone()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">clone</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function clone(p_oV:<a href="../core/data/Vertex.html">Vertex</a>):<a href="../core/data/Vertex.html">Vertex</a></code><p>
   Clones a vertex.
      </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">p_oV</span>:<a href="../core/data/Vertex.html">Vertex</a></code> &mdash; A vertex to clone.
      </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../core/data/Vertex.html">Vertex</a></code> &mdash; 
                        The clone.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="cross()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">cross</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function cross(p_oW:<a href="../core/data/Vertex.html">Vertex</a>, p_oV:<a href="../core/data/Vertex.html">Vertex</a>):<a href="../core/data/Vertex.html">Vertex</a></code><p>
   Computes the cross product the two vertices.
      </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">p_oW</span>:<a href="../core/data/Vertex.html">Vertex</a></code> &mdash; The first vertex.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">p_oV</span>:<a href="../core/data/Vertex.html">Vertex</a></code> &mdash; The second vertex.
      </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../core/data/Vertex.html">Vertex</a></code> &mdash; 
                        The resulting cross product.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="dot()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">dot</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function dot(p_oV:<a href="../core/data/Vertex.html">Vertex</a>, p_oW:<a href="../core/data/Vertex.html">Vertex</a>):Number</code><p>
   Computes the dot product of the two vertices.
      </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">p_oV</span>:<a href="../core/data/Vertex.html">Vertex</a></code> &mdash; The first vertex.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">p_oW</span>:<a href="../core/data/Vertex.html">Vertex</a></code> &mdash; The second vertex.
      </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Number</code> &mdash; The dot procuct.
   </td>
</tr>
</table>
</div>
<a name="getInstance()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getInstance</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getInstance():<a href="../math/VertexMath.html">VertexMath</a></code><p>
   Returns an instance of this class.
      </p><p>Call this method to get an instance of VertexMath.</p>
   <p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../math/VertexMath.html">VertexMath</a></code></td>
</tr>
</table>
</div>
<a name="linearGradientMatrix()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">linearGradientMatrix</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function linearGradientMatrix(p_oV0:<a href="../core/data/Vertex.html">Vertex</a>, p_oV1:<a href="../core/data/Vertex.html">Vertex</a>, p_oV2:<a href="../core/data/Vertex.html">Vertex</a>, p_nR0:Number, p_nR1:Number, p_nR2:Number, p_oMatrix:Matrix = null):Matrix</code><p>
   Calculates linear gradient matrix from three vertices and ratios.
      </p><p>This function expects vertices to be ordered in such a way that p_nR0 &lt; p_nR1 &lt; p_n2.
   Ratios can be scaled by any positive factor.</p>
   <p>See flash.display.Graphics.beginGradientFill() documentation for ratios meaning.</p>
      <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">p_oV0</span>:<a href="../core/data/Vertex.html">Vertex</a></code> &mdash;  The leftmost vertex in a gradient.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">p_oV1</span>:<a href="../core/data/Vertex.html">Vertex</a></code> &mdash;  The inner vertex in a gradient.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">p_oV2</span>:<a href="../core/data/Vertex.html">Vertex</a></code> &mdash;  The rightmost vertex in a gradient.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">p_nR0</span>:Number</code> &mdash;  The ratio for the leftmost vertext.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">p_nR1</span>:Number</code> &mdash;  The ratio for the inner vertex.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">p_nR2</span>:Number</code> &mdash;  The ratio for the rightmost.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">p_oMatrix</span>:Matrix</code> (default = <code>null</code>)<code></code> &mdash; The matrix to use.
      </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Matrix</code> &mdash; The transformation matrix to use with beginGradientFill (GradientType.LINEAR only).
   </td>
</tr>
</table>
</div>
<a name="negate()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">negate</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function negate(p_oV:<a href="../core/data/Vertex.html">Vertex</a>):<a href="../core/data/Vertex.html">Vertex</a></code><p>
   Computes the opposite of a vertex.
      </p><p>The opposite vertex is a vertex where all components are multiplied by <code>-1</code>.</p>
      <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">p_oV</span>:<a href="../core/data/Vertex.html">Vertex</a></code> &mdash; The vertex.
      </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../core/data/Vertex.html">Vertex</a></code> &mdash; 
                        The opposite vertex.
   
                        
                     </td>
</tr>
</table>
</div>
<a name="sub()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">sub</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function sub(p_oV:<a href="../core/data/Vertex.html">Vertex</a>, p_oW:<a href="../core/data/Vertex.html">Vertex</a>):<a href="../core/data/Vertex.html">Vertex</a></code><p>
   Substracts one vertices from another.
      </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">p_oV</span>:<a href="../core/data/Vertex.html">Vertex</a></code> &mdash; The vertex to subtract from.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">p_oW</span>:<a href="../core/data/Vertex.html">Vertex</a></code> &mdash; The vertex to subtract.
      </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../core/data/Vertex.html">Vertex</a></code> &mdash; 
                        The resulting vertex.
   
                        
                     </td>
</tr>
</table>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright">API documentation for Sandy 3D Engine, Ver. 3.1.2</center>
</div>
</body>
</html>
<!--API documentation for Sandy 3D Engine, Ver. 3.1.2-->
